﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Windows;
using System.Windows.Controls;
using System.Windows.Data;
using System.Windows.Documents;
using System.Windows.Input;
using System.Windows.Media;
using System.Windows.Media.Imaging;
using System.Windows.Shapes;

namespace SongSharp.Presentation.View
{
    /// <summary>
    /// Interaction logic for ErrorView.xaml
    /// </summary>
    public partial class ErrorView : Window
    {
        public ErrorView()
        {
            InitializeComponent();

            // Windows aero design init
            this.Loaded += (s, e) =>
            {
                Helper.Aero.GlassEffectHelper.EnableGlassEffect(this);
            };
        }

        public void SetErrorMessage(string errorMessage)
        {
            textBlock2.Text = errorMessage;
        }

        private void button1_Click(object sender, RoutedEventArgs e)
        {
            this.Close();
        }
    }
}
